export default {
  data() {
    return {
      info: {},
      saving: false,
      infoGetting: false,
    };
  },
  watch: {
    $route() {
      !this.infoGetting && this.getInfo();
    },
  },
  computed: {
    id() {
      return this.$route.params.id || '';
    },
    editMode() {
      return !!this.info.id;
    },
  },
  mounted() {
    !this.infoGetting && this.getInfo();
  },
  methods: {
    getInfo() {},
  },
};
